home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NASA Climatology Interdisciplinary Data Collection
/
NASA Climatology Interdisciplinary Data Collection - Disc 4.iso
/
software
/
grads
/
lib
/
stack.gs
< prev
next >
Wrap
Text File
|
1998-04-23
|
431b
|
33 lines
* accept user input until flush, then issue all commands
* and wait for prompt.
i = 0
say "Enter commands, then flush: "
while (1)
i = i + 1
say "Next Command:"
pull cmd.i
if (cmd.i = 'flush')
break
endif
endwhile
if (i=1)
return
endif
'clear'
j = 1
while (j<i)
cmd.j
res.j = result
j = j + 1
endwhile
pull dummy
'clear'
j = 1
while (j<i)
say res.j
j = j + 1
endwhile